# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=emacs-taxy
pkgver=0.10.1
pkgrel=0
_pkgreal=taxy
pkgdesc="Programmable taxonomical grouping for arbitrary objects"
url="https://elpa.gnu.org/packages/taxy.html"
arch="noarch"
license="GPL-3.0-or-later"
depends="cmd:emacs"
makedepends="emacs-nox"
source="https://github.com/alphapapa/taxy.el/archive/$pkgver/emacs-taxy-$pkgver.tar.gz"
builddir="$srcdir/taxy.el-$pkgver"
options="!check" # no tests provided

build() {
	emacs -batch -q -no-site-file -L . \
		-f batch-byte-compile \
		./*.el
}

package() {
	install -Dvm644 ./*.el ./*.elc \
		-t "$pkgdir"/usr/share/emacs/site-lisp/taxy/

	cd "$pkgdir"/usr/share/emacs/site-lisp/taxy
	emacs -batch -q -no-site-file \
		-eval "(loaddefs-generate \".\" \"$_pkgreal-loaddefs.el\")"
}

sha512sums="
7e30db74f8d6173777931c1d8ca3ffcd9063e70bc0a21ed0c123aaf61be1dd7f23f70d7a6d95e22036d245eebf6205baf54c371f798861995b2ca352230d69ab  emacs-taxy-0.10.1.tar.gz
"
